﻿using MuXue.Zyiz.Template.Domain.Entity;
using MuXue.Zyiz.Template.Domain.Model;
using MuXue.Zyiz.Template.Domain.Model.response;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MuXue.Zyiz.Template.Domain.IRepository
{
    /// <summary>
    /// 【Demo可删除】
    /// </summary>
    public interface IordersRepository : IRepository<cs_orders>
    {

        /// <summary>
        /// 获取合同列表
        /// 字段比较少
        /// </summary>
        /// <param name="app_user_id"></param>
        /// <returns></returns>
        Task<List<SmallOrderResp>>  QueryListSmallModel(string app_user_id);
        /// <summary>
        /// 获取合同列表
        /// </summary>
        /// <param name="app_user_id"></param>
        /// <param name="status">-1全部订单（排除已取消和转化为合同）； 0待付款；1已付款未转成合同；2已取消的订单；3申请退费，4退费成功；100已转成合同</param>
        /// <returns></returns>
        Task<List<SmallOrderResp>> QueryListSmallModel(string app_user_id,int status);


        /// <summary>
        /// 
        /// </summary>
        /// <param name="app_user_id"></param>
        /// <param name="order_no"></param>
        /// <returns></returns>
        Task<cs_orders> Detail(string app_user_id, string order_no);

  

    }
}
